home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Developer University / DUProjects / Data / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-03-29  |  1.9 KB  |  70 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //    Release Version:    $ ODF 1 $
  3. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  4. //========================================================================================
  5.  
  6. #ifndef PART_H
  7. #define PART_H
  8.  
  9. //=======================================================================
  10. #ifndef DEFINES_K
  11. #include "Defines.k"
  12. #endif
  13.  
  14. // ----- Framework Includes -----
  15. #ifndef FWPART_H
  16. #include "FWPart.h"            // FW_CPart
  17. #endif
  18.  
  19. // ----- Foundation Layer -----
  20. #ifndef FWSTDDEF_H
  21. #include <FWStdDef.h>        // ?
  22. #endif
  23.  
  24. //=======================================================================
  25. const ODValueType    kAppleTEXTScrap = "Apple:OSType:Scrap:TEXT";
  26. const ODValueType    kAppleTEXTfile     = "Apple:OSType:FileType:TEXT";
  27.  
  28. //=======================================================================
  29. #if FW_LIB_EXPORT_PRAGMAS
  30. #pragma import on
  31. #endif
  32. class FW_CPart;
  33. class FW_CString;
  34. class FW_CMenuBar;
  35. class FW_CMenuEvent;
  36. class FW_CPresentation;
  37. #if FW_LIB_EXPORT_PRAGMAS
  38. #pragma import off
  39. #endif
  40.  
  41. class CDataContent;
  42.  
  43. //=======================================================================
  44. class CDataPart : public FW_CPart {
  45. public:
  46.     FW_DECLARE_AUTO(CDataPart)
  47.     
  48.                         CDataPart(ODPart* odPart);
  49.     virtual             ~CDataPart();
  50. // new members
  51.     virtual void         MyInvalidatePresentation(Environment* ev, FW_CRect& rect);
  52. // overrides
  53. protected:
  54.     virtual FW_CContent* NewPartContent(Environment* ev);
  55.     virtual void         Initialize(Environment* ev);
  56.     virtual FW_CFrame*    NewFrame(Environment* ev,
  57.                                  ODFrame* odFrame,
  58.                                  FW_CPresentation* presentation,
  59.                                  FW_Boolean fromStorage);
  60.     virtual FW_Boolean    DoMenu(Environment* ev,
  61.                                const FW_CMenuEvent& theMenuEvent);
  62. // new members
  63. private:
  64.     FW_CPresentation*    fPresentation;
  65.     CDataContent*        fPartContent;
  66. };
  67.  
  68. //=======================================================================
  69. #endif
  70.